from django.contrib import admin
from django.urls import path, include
from rest_framework_simplejwt.views import (
    TokenRefreshView,
)
from django.views.generic import TemplateView
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/', include([
        path('auth/', include('apps.user.urls')),
        path('note/', include('apps.note.urls')),
        path('schedule/', include('apps.schedule.urls')),
        path('ai/', include('apps.ai.urls')),
        path('bots/', include('apps.bots.urls')),
    ])),
    path('api/auth/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('', TemplateView.as_view(template_name='index.html'), name='home'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)